GetMediaTrack
TheGetMediaTrack
function allows you to determine the track that uses a specified media.
pascal Track GetMediaTrack (Media theMedia);
theMedia
- Specifies the media for this operation. Your application obtains this media identifier from such Movie Toolbox functions as
NewTrackMedia
andGetTrackMedia
(described on page 2-138 and page 2-190, respectively).DESCRIPTION
TheGetMediaTrack
function returns the track identifier of the track that uses the media. If the function cannot determine the track that uses the media, it sets this
value tonil
.ERROR CODES
invalidMedia -2008 This media is corrupted or invalid